From 6dde5f55da1ddfec808b0560f4923eff7b6de4a6 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Thu, 12 Mar 2009 15:40:52 +0000 Subject: [PATCH] xend: fix regression in c/s 19330 attached patch fixes a regression in c/s 19330 which prevents to start guests on a Linux Dom0. Signed-off-by: Christoph Egger --- tools/python/xen/xend/image.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/python/xen/xend/image.py b/tools/python/xen/xend/image.py index 772b8044cd..9c1eac878e 100644 --- a/tools/python/xen/xend/image.py +++ b/tools/python/xen/xend/image.py @@ -232,7 +232,11 @@ class ImageHandler: # If we use a device model, the pipes for communication between # blktapctrl and ioemu must be present before the devices are # created (blktapctrl must access them for new block devices) - os.makedirs('/var/run/tap', 0755) + + try: + os.makedirs('/var/run/tap', 0755) + except: + pass try: os.mkfifo('/var/run/tap/qemu-read-%d' % domid, 0600) -- 2.30.2